/***********************************************************************
 * Module:  BlogDetail.java
 * Author:  HiWin10
 * Purpose: Defines the Class BlogDetail
 ***********************************************************************/
package com.ccq.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name = "blogDetail")
public class BlogDetail {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int id;

	@OneToOne
	@JoinColumn(name = "blogTitleId")
	private BlogTitle blogTitle;

	@Column
	private String content;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public BlogTitle getBlogTitle() {
		return blogTitle;
	}

	public void setBlogTitle(BlogTitle blogTitle) {
		this.blogTitle = blogTitle;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

}